package com.bangdream.michelia.view.adapter;


import android.widget.ImageView;

import com.bangdream.michelia.R;
import com.bangdream.michelia.entity.CertBean;
import com.bangdream.michelia.utils.ImageLoadUtils;
import com.bangdream.michelia.utils.L;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;


public class MyCertAdapter extends BaseQuickAdapter<CertBean, BaseViewHolder> {


    public MyCertAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, CertBean item) {
        L.e("tag","===============");
//        helper.setText(R.id.tv_title,item.getCertData().getName());
//        helper.setText(R.id.tv_time,"获得时间:"+item.ge());

        ImageView imageView = helper.getView(R.id.iv_pic);
        ImageLoadUtils.ImageLoad(mContext, item.getCertPath(), imageView, -1);

        helper.addOnClickListener(R.id.iv_download);
    }
}
